home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / calendar-unifinder.xul < prev    next >
Extensible Markup Language  |  2008-02-17  |  8KB  |  161 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is OEone Calendar Code, released October 31st, 2001.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - OEone Corporation.
  19.    - Portions created by the Initial Developer are Copyright (C) 2001
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Garth Smedley <garths@oeone.com>
  24.    -   Mike Potter <mikep@oeone.com>
  25.    -   Colin Phillips <colinp@oeone.com>
  26.    -   Chris Charabaruk <coldacid@djfly.org>
  27.    -   Karl Guertin <grayrest@grayrest.com>
  28.    -   Dan Parent <danp@oeone.com>
  29.    -   ArentJan Banck <ajbanck@planet.nl>
  30.    -   Eric Belhaire <belhaire@ief.u-psud.fr>
  31.    -   Stefan Sitter <ssitter@googlemail.com>
  32.    -   Philipp Kewisch <mozilla@kewis.ch>
  33.    -   Michael Buettner <michael.buettner@sun.com>
  34.    -   Simon Paquet <bugzilla@babylonsounds.com>
  35.    -
  36.    - Alternatively, the contents of this file may be used under the terms of
  37.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  38.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  39.    - in which case the provisions of the GPL or the LGPL are applicable instead
  40.    - of those above. If you wish to allow use of your version of this file only
  41.    - under the terms of either the GPL or the LGPL, and not to allow others to
  42.    - use your version of this file under the terms of the MPL, indicate your
  43.    - decision by deleting the provisions above and replace them with the notice
  44.    - and other provisions required by the LGPL or the GPL. If you do not delete
  45.    - the provisions above, a recipient may use your version of this file under
  46.    - the terms of any one of the MPL, the GPL or the LGPL.
  47.    -
  48.    - ***** END LICENSE BLOCK ***** -->
  49.  
  50. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
  51. <?xml-stylesheet href="chrome://calendar/skin/calendar-unifinder.css" type="text/css"?>
  52.  
  53. <!DOCTYPE overlay SYSTEM "chrome://calendar/locale/calendar.dtd">
  54.  
  55. <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  56.   <script type="application/x-javascript" src="chrome://calendar/content/calendar-unifinder.js"/>
  57.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  58.  
  59.   <vbox id="calendar-view-box">
  60.     <vbox id="bottom-events-box" insertbefore="view-deck" persist="height">
  61.       <hbox id="unifinder-searchBox" persist="collapsed">
  62.         <box align="center">
  63.           <menulist id="event-filter-menulist" value="next7Days" persist="value">
  64.             <menupopup id="event-filter-menupopup" oncommand="refreshEventTree()">
  65.               <menuitem id="event-filter-all"
  66.                         label="&calendar.events.filter.all.label;"
  67.                         value="all"/>
  68.               <menuitem id="event-filter-today"
  69.                         label="&calendar.events.filter.today.label;"
  70.                         value="today"/>
  71.               <menuitem id="event-filter-next7Days"
  72.                         label="&calendar.events.filter.next7Days.label;"
  73.                         value="next7Days"/>
  74.               <menuitem id="event-filter-next14Days"
  75.                         label="&calendar.events.filter.next14Days.label;"
  76.                         value="next14Days"/>
  77.               <menuitem id="event-filter-next31Days"
  78.                         label="&calendar.events.filter.next31Days.label;"
  79.                         value="next31Days"/>
  80.               <menuitem id="event-filter-thisCalendarMonth"
  81.                         label="&calendar.events.filter.thisCalendarMonth.label;"
  82.                         value="thisCalendarMonth"/>
  83.               <menuitem id="event-filter-future"
  84.                         label="&calendar.events.filter.future.label;"
  85.                         value="future"/>
  86.               <menuitem id="event-filter-current"
  87.                         label="&calendar.events.filter.current.label;"
  88.                         value="current"/>
  89.             </menupopup>
  90.           </menulist>
  91.         </box>
  92.         <box align="center" flex="1">
  93.           <label control="unifinder-search-field" value="&calendar.search.options.searchfor;"/>
  94.           <textbox id="unifinder-search-field" onkeypress="searchKeyPress( this, event )" flex="1"/>
  95.         </box>
  96.         <toolbarbutton id="unifinder-closer" class="unifinder-closebutton" command="calendar_show_unifinder_command"/>
  97.       </hbox>
  98.       <tree id="unifinder-search-results-tree" flex="1"
  99.             onselect="unifinderSelect( event ); onSelectionChanged()"
  100.             onkeypress="unifinderKeyPress(event)"
  101.             _selectDelay="500"
  102.             enableColumnDrag="true">
  103.         <treecols id="unifinder-search-results-tree-cols">
  104.           <treecol id="unifinder-search-results-tree-col-title"
  105.                    persist="hidden ordinal width sortDirection sortActive"
  106.                    flex="1"
  107.                    label="&calendar.unifinder.tree.title.label;" />
  108.           <splitter class="tree-splitter"/>
  109.           <treecol id="unifinder-search-results-tree-col-startdate"
  110.                    persist="hidden ordinal width sortDirection sortActive"
  111.                    flex="1"
  112.                    label="&calendar.unifinder.tree.startdate.label;"/>
  113.           <splitter class="tree-splitter"/>
  114.           <treecol id="unifinder-search-results-tree-col-enddate"
  115.                    persist="hidden ordinal width sortDirection sortActive"
  116.                    flex="1"
  117.                    label="&calendar.unifinder.tree.enddate.label;"/>
  118.           <splitter class="tree-splitter"/>
  119.           <treecol id="unifinder-search-results-tree-col-categories"
  120.                    persist="hidden ordinal width sortDirection sortActive"
  121.                    flex="1"
  122.                    label="&calendar.unifinder.tree.categories.label;"/>
  123.           <splitter class="tree-splitter"/>
  124.           <treecol id="unifinder-search-results-tree-col-location"
  125.                    persist="hidden ordinal width sortDirection sortActive"
  126.                    flex="1"
  127.                    hidden="true"
  128.                    label="&calendar.unifinder.tree.location.label;"/>
  129.           <splitter class="tree-splitter"/>
  130.           <treecol id="unifinder-search-results-tree-col-status"
  131.                    persist="hidden ordinal width sortDirection sortActive"
  132.                    flex="1"
  133.                    hidden="true"
  134.                    label="&calendar.unifinder.tree.status.label;"/>
  135.           <treecol id="unifinder-search-results-tree-col-calendarname"
  136.                    persist="hidden ordinal width sortDirection sortActive"
  137.                    flex="1"
  138.                    hidden="true"
  139.                    label="&calendar.unifinder.tree.calendarname.label;"/>
  140.         </treecols>
  141.  
  142.         <!-- on mousedown here happens before onclick above -->
  143.         <treechildren tooltip="eventTreeTooltip"
  144.                       onkeypress="if (event.keyCode == 13) unifinderEditCommand();"
  145.                       ondragover="return( false );"
  146.                       ondblclick="unifinderDoubleClick(event)"
  147.                       onfocus="focusFirstItemIfNoSelection( );"/>
  148.       </tree>
  149.     </vbox>
  150.     <splitter id="calendar-view-splitter"
  151.               insertbefore="view-deck"
  152.               collapse="before"
  153.               persist="state"
  154.               class="chromeclass-extrachrome sidebar-splitter"
  155.               orient="vertical"
  156.               onmouseup="setTimeout('refreshEventTree();', 10 );">
  157.       <grippy class="sidebar-splitter-grippy"/>
  158.     </splitter>
  159.   </vbox>
  160. </overlay>
  161.